package com.xc.quickstart.common.constant;

public class RedisKeyConstant {

    public static final String SSO_AUTHORITY_KEY = "quickstart:sso:auth:%s";
    public static final String SSO_AUTHORITY_ROLE_KEY = "quickstart:sso:role:%s";

    /**
     * 系统配置缓存 key:type
     */
    public static final String CONFIG_KEY = "crm:config:%s:%s";

    /**
     * 系统配置列表缓存 key:type
     */
    public static final String CONFIG_LIST_KEY = "crm:config:list:%s";

    /**
     * job执行报表
     */
    public static final String JOB_DAILY_REPORT_KEY = "crm:job:daily_report:%s";

    /**
     * token 校验key
     */
    public static final String TOKEN_KEY = "crm:token:%s:%s";

    /**
     * 验证码获取评率控制 校验key
     */
    public static final String SMS_CODE_CHECK_KEY = "crm:sms_code:check:%s";


    /**
     * 省市区列表 key
     */
    public static final String REGION_LIST_KEY = "crm:region:list:%s:%s";

    /**
     * 用户列表 key
     */
    public static final String USER_LIST_KEY = "crm:user:list:%s:%s";

    /**
     * 部门权限 key
     * jobNumber,mchId
     */
    public static final String AUTHORITY_DEPT_INFO_KEY = "crm:dept_info:%s:%s";

    /**
     * 资源权限 key
     */
    public static final String AUTHORITY_INVITATION_CODE_KEY = "crm:authority:invitation_code";

    /**
     * 数据权限
     * jobNumber_deptId_mchId
     */
    public static final String AUTHORITY_PERMISSION_KEY = "crm:authority:permission:%s:%s:%s";

    /**
     * 子部门权限 key
     * deptId
     */
    public static final String AUTHORITY_CHILD_DEPT_ID_KEY = "crm:authority:child_dept_id:%s";

    /**
     * 功能权限代码 key
     */
    public static final String AUTHORITY_CODE_KEY = "crm:authority:code:%s";

    /**
     * 获取大部门配置下部门以及所有子部门的员工工号列表 key
     */
    public static final String JOB_NUMBER_BY_DEPART_LIST_KEY = "crm:job_number_filter_depart_list:%s:%s:%s";

    /**
     * 获取大部门配置下部门以及所有子部门的部门id列表 key
     */
    public static final String DEPT_ID_BY_DEPART_LIST_KEY = "crm:dept_id_By_depart_list:%s";

    /**
     * 获取业绩目标配置下部门以及所有子部门的员工工号列表 key
     */
    public static final String JOB_NUMBER_BY_TARGET_DEPT_KEY = "crm:job_number_by_target_dept:%s:%s:%s";

    /**
     * 获取业绩目标配置下部门以及所有子部门的部门id列表 key
     */
    public static final String DEPT_ID_BY_TARGET_DEPT_KEY = "crm:dept_id_by_target_dept:%s:%s:%s";

    /**
     * 防重复提交 key
     * jobNumber
     * servletPath
     */
    public static final String AVOID_DUPLICATE_SUBMIT_KEY = "crm:avoid_duplicate_submit_key:%s:%s";

    /**
     * 企业微信access_token
     */
    public static final String QY_WECHAT_ACCESS_TOKEN_KEY = "crm:qy_wx_access_token";

}
